#include<iostream>
#include<string>
#include<algorithm>
#include<iterator>

using namespace std;

int main(){
    string str1 = "we are here!", str2 = str1;

    cout << str1[0] << " "<< &str1[0] << endl;


    reverse(&str1[0],&str1[0]+12);
    cout << str1 <<endl;
    copy(&str1[0],&str1[0]+12,&str2[0]);
    cout << str2 <<endl;
    reverse_copy(&str2[0],&str2[0]+12,ostream_iterator<char>(cout," "));
    return 0;
}

